<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>
<body>
    <script>
        /* Array,Function,JSON Object */
        /* 1.声明一个数组 */
        var arr=["html","css","js"];
        /* 2.判断一个对象是不是数组 */
        console.log(Array.isArray(arr))
        /* 3.读取数组的值 */
        console.log(arr[0])
        console.log(arr[2])
        /* 4.length属性可以获取数组的长度 */
        console.log(arr.length)
        /* 5.获取数组的最后一位的值 */
        console.log(arr[arr.length-1])
    </script>
</body>
</html>